Get Random Journal Prompt(s)
(
39
actions, 29 KB)
0 Comment
Spin Wheels
1 If
[Shortcut Input]
has any value
2 Get Dictionary from
[Shortcut Input]
»
3
6
11
12
3 Get Dictionary Value for
topic
in
[2 Dictionary]
➔ topic
»
4
5
4 Find Reminders »
7
9
ContentItemLimitEnabled
:
true
ContentItemLimitNumber
:
1
ContentItemFilter
:
• All the following are true List is 💭 Journal Prompt Is Not Completed Title contains
[3 topic]
5 If
[3 topic
’s Name
]
is
Prioritization
6 Get Dictionary Value for
todayOrTomorrow
in
[2 Dictionary]
➔ todayOrTomorrow
»
7 Replace Text
XXX
with
[6 todayOrTomorrow]
in
[4 Reminders
’s Subtasks
]
ReplaceTextCaseSensitive
:
false
8 Otherwise
9 Get
Subtasks
of Reminders
[4 Reminders]
10 End If
➔ listOfJournalPrompts
»
13
23
26
29
11 If
[2 Dictionary
.numberOfItems
]
has any value
12 Get Numbers from
[2 Dictionary
.numberOfItems
]
»
14
15
16
13 Count Items in
[10 listOfJournalPrompts]
»
14
18
19
21
14 If
[12 Numbers]
<
[13 Count]
15 Run Shortcut
Random Number Generator
➔ anchorIdx
»
17
Input
:
[12 Numbers]
Workflow
:
{ "workflowIdentifier": "1C84098A-BAB5-473C-A617-238CC3A25747", "workflowName": "Random Number Generator", "isSelf": false }
16 Repeat
[12 Numbers]
Times
17 Calculate
[15 anchorIdx]
+
[Repeat Index]
»
18
21
18 If
[17 Calculation Result]
is
[13 Count]
19 Get Numbers from
[13 Count]
20 Otherwise
21 Calculate Expression
[17 Calculation Result]
%
[13 Count]
➔ module
22 End If »
23 Get
Item At Index
[22 If Result]
from List
[10 listOfJournalPrompts]
24 End Repeat Times ▵
16
25 Otherwise ▵
14
26 Get Text from
[10 listOfJournalPrompts]
27 End If
28 Otherwise ▵
11
29 Run Shortcut
Get Random Item From List
Input
:
[10 listOfJournalPrompts]
Workflow
:
{ "workflowIdentifier": "E625C6C1-A183-473F-82BB-06827A38FB78", "workflowName": "Get Random Item From List", "isSelf": false }
30 End If
31 Otherwise ▵
1
32 Find Reminders »
ContentItemLimitEnabled
:
false
ContentItemLimitNumber
:
5
ContentItemFilter
:
• All the following are true List is 💭 Journal Prompt Is Not Completed Is Not Flagged
33 Repeat with Each in
[32 Reminders]
34 Get
Subtasks
of Reminders
[Repeat Item]
35 End Repeat with Each »
36 Run Shortcut
Get Random Item From List
Input
:
[35 Repeat Results]
Workflow
:
{ "workflowIdentifier": "E625C6C1-A183-473F-82BB-06827A38FB78", "workflowName": "Get Random Item From List", "isSelf": false }
37 End If ▵
31
»
38 Stop and Output
[37 If Result]